﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Students.aspx.cs" Inherits="YouthCMS.Students" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2 class="title">
        <a href="#">Opret En Elev</a>
    </h2>
    <span class="styleForSubmitButtons">Her kan du oprette en Elev. </span>
    <div class="singleFields">
        <asp:Label ID="lblTeacherUsername" Text="Brugernavn" AssociatedControlID="txtBoxUsername"
            runat="server" />
        <asp:TextBox ID="txtBoxUsername" runat="server"> </asp:TextBox>
        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="txtBoxUsername"
            CssClass="failureNotification" ErrorMessage="Du skal indtaste et brugernavn."
            ToolTip="Brugernavn <b>Skal</b> indtastes." ValidationGroup="CreateTeacherValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblStudenPassword" Text="Kodeord" runat="server" />
        <asp:TextBox ID="txtBoxStudentPassword" MaxLength="255" runat="server"></asp:TextBox>
        <asp:Button ID="buttonGeneratePassword" Text="Generer Kodeord" OnClick="GeneratePassword"
            runat="server" />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtBoxStudentPassword"
            CssClass="failureNotification" ErrorMessage="Du skal indtaste et (valgfrit) kodeord."
            ToolTip="Brugernavn <b>Skal</b> indtastes." ValidationGroup="CreateStudentValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblStudentSSN" Text="CPR-NR" runat="server" />
        <asp:TextBox ID="txtBoxStudentSSN" runat="server"> </asp:TextBox>
        <asp:RangeValidator ID="RangeValidator1" runat="server" Type="String" MinimumValue="000000-0000"
            MaximumValue="999999-9999" ControlToValidate="txtBoxStudentSSN" ValidationGroup="CreateStudentValidationGroup"
            ErrorMessage="Indtast dit CPR-nummer . F.eks 220192-1611"></asp:RangeValidator>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtBoxStudentSSN"
            CssClass="failureNotification" ErrorMessage="Udfyld venligst CPR-NR" ToolTip="Af sikkerhedsmæssige årsager, skal dit CPR-nummer udfyldes."
            ValidationGroup="CreateStudentValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblStudentFirstName" Text="Fornavn" runat="server" />
        <asp:TextBox ID="txtBoxStudentFirstName" MaxLength="255" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtBoxStudentFirstName"
            CssClass="failureNotification" ErrorMessage="Du skal indtaste dit Fornavn." ToolTip="Du indtaster dit fornavn i feltet."
            ValidationGroup="CreateStudentValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblStudentLastName" Text="Efternavn" runat="server" />
        <asp:TextBox ID="txtBoxStudentLastName" ValidationGroup="" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtBoxStudentLastName"
            CssClass="failureNotification" ErrorMessage="Du skal indtaste dit Efternavn."
            ToolTip="Du indtaster dit efternavn i feltet" ValidationGroup="CreateStudentValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblAddress1" Text="Adresse 1" runat="server" />
        <asp:TextBox ID="txtBoxAddress1" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtBoxAddress1"
            CssClass="failureNotification" ErrorMessage="Du skal indtaste din adresse." ToolTip="Du indtaster din hjemme adresse"
            ValidationGroup="CreateStudentValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblAddress2" Text="Adresse 2" runat="server" />
        <asp:TextBox ID="txtBoxAddress2" runat="server"></asp:TextBox>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblPhone1" Text="Hjemmetelefon" runat="server" />
        <asp:TextBox ID="txtBoxPhone1" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtBoxPhone1"
            CssClass="failureNotification" ErrorMessage="Indtast din hjemme telefon" ToolTip="Indtast dit hjemmenummer"
            ValidationGroup="CreateStudentValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblMobile" Text="Mobiltelefon" runat="server" />
        <asp:TextBox ID="txtBoxMobile" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtBoxMobile"
            CssClass="failureNotification" ErrorMessage="Indtast dit mobiltelefon nummer"
            ToolTip="Indtast dit mobiltelefon nummer" ValidationGroup="CreateStudentValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblEmail" Text="Email" runat="server" />
        <asp:TextBox ID="txtBoxEmail" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtBoxEmail"
            CssClass="failureNotification" ErrorMessage="Du skal indtaste din Email Adresse."
            ToolTip="En Email adresse kan se således ud: test@test.com" ValidationGroup="CreateStudentValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblZipCode" Text="Postnr" runat="server" />
        <asp:DropDownList ID="ddLZipcode" runat="server">
        </asp:DropDownList>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblGradeLevel" Text="Klasse trin" runat="server" />
        <asp:DropDownList ID="listBoxGradeLevel" runat="server">
            <asp:ListItem>1</asp:ListItem>
            <asp:ListItem>2</asp:ListItem>
            <asp:ListItem>3</asp:ListItem>
            <asp:ListItem>4</asp:ListItem>
            <asp:ListItem>5</asp:ListItem>
            <asp:ListItem>6</asp:ListItem>
            <asp:ListItem>7</asp:ListItem>
            <asp:ListItem>8</asp:ListItem>
            <asp:ListItem>9</asp:ListItem>
            <asp:ListItem>10</asp:ListItem>
        </asp:DropDownList>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="listBoxGradeLevel"
            CssClass="failureNotification" ErrorMessage="Indtast dit klassetrin" ToolTip="Du skal indtaste hvilken klasse du går i."
            ValidationGroup="CreateStudentValidationGroup">*</asp:RequiredFieldValidator>
        <asp:Label ID="lblGradeCat" Text="Klasse (Spor)(Bogstav)" runat="server" />
        <asp:DropDownList ID="rBLGradeCat" runat="server">
            <asp:ListItem>A</asp:ListItem>
            <asp:ListItem>B</asp:ListItem>
            <asp:ListItem>C</asp:ListItem>
            <asp:ListItem>D</asp:ListItem>
            <asp:ListItem>E</asp:ListItem>
            <asp:ListItem>F</asp:ListItem>
            <asp:ListItem>G</asp:ListItem>
            <asp:ListItem>H</asp:ListItem>
            <asp:ListItem>I</asp:ListItem>
            <asp:ListItem></asp:ListItem>
        </asp:DropDownList>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblSchoolName" Text="Skole" runat="server" />
        <asp:TextBox ID="txtBoxSchool" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="txtBoxSchool"
            CssClass="failureNotification" ErrorMessage="Indtast skolens navn" ToolTip="Du skal indtaste skolens navn"
            ValidationGroup="CreateStudentValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="singleFields">
        <asp:Label ID="lblBusCard" Text="Har du bus/måneds-kort?" runat="server" />
        <asp:RadioButtonList ID="rBLSelectBusCard" runat="server">
            <asp:ListItem Value="true">Ja</asp:ListItem>
            <asp:ListItem Value="false">Nej</asp:ListItem>
        </asp:RadioButtonList>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="rBLSelectBusCard"
            CssClass="failureNotification" ErrorMessage="Indtast skolens navn" ToolTip="Du skal indtaste skolens navn"
            ValidationGroup="CreateStudentValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="failureNotification">
        <asp:ValidationSummary ID="ValidationSummary1" CssClass="failureNotification" ValidationGroup="CreateStudentValidationGroup"
            runat="server" />
    </div>
    <p class="links">
        <asp:LinkButton ID="lButtonSubmit" CommandName="Login" ValidationGroup="CreateStudentValidationGroup"
            OnClick="SubmitStudent" runat="server">Opret Elev</asp:LinkButton>
    </p>
</asp:Content>
